HAL SPI APIs listing for migration

This section provides a full listing of the HAL1 APIs for migration. It includes the various constants, enumerations, structures functions and macros.

HAL SPI constants

HAL1

series

HAL2

Refer to

SPI_MASTER_INTERDATA_IDLENESS_00CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_00CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_01CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_01CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_02CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_02CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_03CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_03CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_04CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_04CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_05CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_05CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_06CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_06CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_07CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_07CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_08CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_08CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_09CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_09CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_10CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_10CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_11CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_11CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_12CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_12CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_13CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_13CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_14CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_14CYCLE

Refer to

SPI_MASTER_INTERDATA_IDLENESS_15CYCLE

u5, h5, h7

HAL_SPI_MIDI_DELAY_15CYCLE

Refer to

SPI_MASTER_RX_AUTOSUSP_DISABLE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_MASTER_RX_AUTOSUSP_ENABLE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_UNDERRUN_BEHAV_REGISTER_PATTERN

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_UNDERRUN_BEHAV_LAST_RECEIVED

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_UNDERRUN_BEHAV_LAST_TRANSMITTED

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_RDY_MASTER_MANAGEMENT_INTERNALLY

u5, h5

Removed / New Usage changes

Refer to

SPI_RDY_MASTER_MANAGEMENT_EXTERNALLY

u5, h5

Removed / New Usage changes

Refer to

SPI_RDY_POLARITY_HIGH

u5, h5

Removed / New Usage changes

Refer to

SPI_RDY_POLARITY_LOW

u5, h5

Removed / New Usage changes

Refer to

SPI_FIFO_THRESHOLD_01DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_01DATA

Refer to

SPI_FIFO_THRESHOLD_02DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_02DATA

Refer to

SPI_FIFO_THRESHOLD_03DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_03DATA

Refer to

SPI_FIFO_THRESHOLD_04DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_04DATA

Refer to

SPI_FIFO_THRESHOLD_05DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_05DATA

Refer to

SPI_FIFO_THRESHOLD_06DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_06DATA

Refer to

SPI_FIFO_THRESHOLD_07DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_07DATA

Refer to

SPI_FIFO_THRESHOLD_08DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_08DATA

Refer to

SPI_FIFO_THRESHOLD_09DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_09DATA

Refer to

SPI_FIFO_THRESHOLD_10DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_10DATA

Refer to

SPI_FIFO_THRESHOLD_11DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_11DATA

Refer to

SPI_FIFO_THRESHOLD_12DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_12DATA

Refer to

SPI_FIFO_THRESHOLD_13DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_13DATA

Refer to

SPI_FIFO_THRESHOLD_14DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_14DATA

Refer to

SPI_FIFO_THRESHOLD_15DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_15DATA

Refer to

SPI_FIFO_THRESHOLD_16DATA

u5, h5, h7

HAL_SPI_FIFO_THRESHOLD_16DATA

Refer to

SPI_CRC_INITIALIZATION_ALL_ZERO_PATTERN

u5, h5, h7

HAL_SPI_CRC_TX_INIT_PATTERN_ALL_ZERO

Refer to

SPI_CRC_INITIALIZATION_ALL_ONE_PATTERN

u5, h5, h7

HAL_SPI_CRC_TX_INIT_PATTERN_ALL_ONE

Refer to

SPI_NSS_POLARITY_LOW

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_NSS_POLARITY_HIGH

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_MASTER_KEEP_IO_STATE_DISABLE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_MASTER_KEEP_IO_STATE_ENABLE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IO_SWAP_DISABLE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IO_SWAP_ENABLE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_MASTER_SS_IDLENESS_00CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_00CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_01CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_01CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_02CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_02CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_03CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_03CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_04CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_04CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_05CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_05CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_06CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_06CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_07CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_07CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_08CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_08CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_09CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_09CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_10CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_10CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_11CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_11CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_12CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_12CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_13CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_13CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_14CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_14CYCLE

Refer to

SPI_MASTER_SS_IDLENESS_15CYCLE

u5, h5, h7

HAL_SPI_NSS_MSSI_DELAY_15CYCLE

Refer to

SPI_IT_TXTF

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_OVR

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_UDR

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_CRCERR

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_FRE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_MODF

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_ERR

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_IT_TSERF

h7

Not implemented yet in HAL2.

Refer to

SPI_IT_TXE

c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

SPI_IT_RXNE

c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

SPI_IT_RXP

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_TXP

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_DXP

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_IT_EOT

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FTLVL_EMPTY

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FTLVL_QUARTER_FULL

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FTLVL_HALF_FULL

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FTLVL_FULL

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FRLVL_EMPTY

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FRLVL_QUARTER_FULL

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FRLVL_HALF_FULL

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FRLVL_FULL

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FLAG_FTLVL

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_FLAG_BSY

c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

SPI_FLAG_RXNE

c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

SPI_FLAG_RXP

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_TXP

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_DXP

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_EOT

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_TXTF

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_UDR

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_OVR

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_FLAG_CRCERR

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_FLAG_FRE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_FLAG_MODF

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_FLAG_SUSP

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_TXC

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_FRLVL

u5, h5, c0, l4, g4, g0, h7

Removed / New Usage changes

Refer to

SPI_FLAG_RXWNE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_FLAG_MASK

c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

SPI_FLAG_TXE

c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

SPI_RX_FIFO_0PACKET

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_RX_FIFO_1PACKET

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_RX_FIFO_2PACKET

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_RX_FIFO_3PACKET

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_RXFIFO_THRESHOLD

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_RXFIFO_THRESHOLD_QF

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_RXFIFO_THRESHOLD_HF

c0, l4, g4, g0

Removed / New Usage changes

Refer to

SPI_DATASIZE_4BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_4BIT

Refer to

SPI_DATASIZE_5BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_5BIT

Refer to

SPI_DATASIZE_6BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_6BIT

Refer to

SPI_DATASIZE_7BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SP_DATA_WIDTH_7BIT

Refer to

SPI_DATASIZE_8BIT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_DATA_WIDTH_8BIT

Refer to

SPI_DATASIZE_9BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_9BIT

Refer to

SPI_DATASIZE_10BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_10BIT

Refer to

SPI_DATASIZE_11BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_11BIT

Refer to

SPI_DATASIZE_12BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_12BIT

Refer to

SPI_DATASIZE_13BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_13BIT

Refer to

SPI_DATASIZE_14BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_14BIT

Refer to

SPI_DATASIZE_15BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_DATA_WIDTH_15BIT

Refer to

SPI_DATASIZE_16BIT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_DATA_WIDTH_16BIT

Refer to

SPI_DATASIZE_17BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_17BIT

Refer to

SPI_DATASIZE_18BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_18BIT

Refer to

SPI_DATASIZE_19BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_19BIT

Refer to

SPI_DATASIZE_20BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_20BIT

Refer to

SPI_DATASIZE_21BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_21BIT

Refer to

SPI_DATASIZE_22BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_22BIT

Refer to

SPI_DATASIZE_23BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_23BIT

Refer to

SPI_DATASIZE_24BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_24BIT

Refer to

SPI_DATASIZE_25BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_25BIT

Refer to

SPI_DATASIZE_26BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_26BIT

Refer to

SPI_DATASIZE_27BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_27BIT

Refer to

SPI_DATASIZE_28BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_28BIT

Refer to

SPI_DATASIZE_29BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_29BIT

Refer to

SPI_DATASIZE_30BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_30BIT

Refer to

SPI_DATASIZE_31BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_31BIT

Refer to

SPI_DATASIZE_32BIT

u5, h5, h7

HAL_SPI_DATA_WIDTH_32BIT

Refer to

SPI_POLARITY_LOW

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_CLOCK_POLARITY_LOW

Refer to

SPI_POLARITY_HIGH

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_CLOCK_POLARITY_HIGH

Refer to

SPI_LOWEND_FIFO_SIZE

u5, h5, h7

Removed / New Usage changes

Refer to

SPI_HIGHEND_FIFO_SIZE

u5, h5, h7

Removed / New Usage changes

Refer to

HAL_SPI_ERROR_NONE

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_ERROR_NONE

Refer to

HAL_SPI_ERROR_RELOAD

h7

HAL_SPI_ERROR_RELOAD

Refer to

HAL_SPI_ERROR_MODF

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_ERROR_MODF

Refer to

HAL_SPI_ERROR_CRC

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_ERROR_CRC

Refer to

HAL_SPI_ERROR_OVR

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_ERROR_OVR

Refer to

HAL_SPI_ERROR_FRE

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_ERROR_FRE

Refer to

HAL_SPI_ERROR_DMA

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_ERROR_DMA

Refer to

HAL_SPI_ERROR_FLAG

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPI_ERROR_ABORT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_ERROR_ABORT

Refer to

HAL_SPI_ERROR_UDR

u5, h5, h7

HAL_SPI_ERROR_UDR

Refer to

HAL_SPI_ERROR_TIMEOUT

u5, h5, h7

Removed / New Usage changes

Refer to

HAL_SPI_ERROR_UNKNOW

u5, h5, h7

Removed / New Usage changes

Refer to

HAL_SPI_ERROR_NOT_SUPPORTED

u5, h5, h7

Removed / New Usage changes

Refer to

HAL_SPI_ERROR_INVALID_CALLBACK

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_MODE_SLAVE

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_MODE_SLAVE

Refer to

SPI_MODE_MASTER

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_MODE_MASTER

Refer to

SPI_DIRECTION_2LINES

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_DIRECTION_FULL_DUPLEX

Refer to

SPI_DIRECTION_2LINES_TXONLY

u5, h5

HAL_SPI_DIRECTION_SIMPLEX_TX

Refer to

SPI_DIRECTION_2LINES_RXONLY

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_DIRECTION_SIMPLEX_RX

Refer to

SPI_DIRECTION_1LINE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_PHASE_1EDGE

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_CLOCK_PHASE_1EDGE

Refer to

SPI_PHASE_2EDGE

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_CLOCK_PHASE_2EDGE

Refer to

SPI_CRC_LENGTH_DATASIZE

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_CRC_LENGTH_DATASIZE

Refer to

SPI_CRC_LENGTH_4BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_4BIT

Refer to

SPI_CRC_LENGTH_5BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_5BIT

Refer to

SPI_CRC_LENGTH_6BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_6BIT

Refer to

SPI_CRC_LENGTH_7BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_7BIT

Refer to

SPI_CRC_LENGTH_8BIT

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_CRC_LENGTH_8BIT

Refer to

SPI_CRC_LENGTH_9BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_9BIT

Refer to

SPI_CRC_LENGTH_10BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_10BIT

Refer to

SPI_CRC_LENGTH_11BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_11BIT

Refer to

SPI_CRC_LENGTH_12BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_12BIT

Refer to

SPI_CRC_LENGTH_13BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_13BIT

Refer to

SPI_CRC_LENGTH_14BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_14BIT

Refer to

SPI_CRC_LENGTH_15BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_15BIT

Refer to

SPI_CRC_LENGTH_16BIT

u5, h5, c0, l4, g4, g0

HAL_SPI_CRC_LENGTH_16BIT

Refer to

SPI_CRC_LENGTH_17BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_17BIT

Refer to

SPI_CRC_LENGTH_18BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_18BIT

Refer to

SPI_CRC_LENGTH_19BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_19BIT

Refer to

SPI_CRC_LENGTH_20BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_20BIT

Refer to

SPI_CRC_LENGTH_21BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_21BIT

Refer to

SPI_CRC_LENGTH_22BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_22BIT

Refer to

SPI_CRC_LENGTH_23BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_23BIT

Refer to

SPI_CRC_LENGTH_24BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_24BIT

Refer to

SPI_CRC_LENGTH_25BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_25BIT

Refer to

SPI_CRC_LENGTH_26BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_26BIT

Refer to

SPI_CRC_LENGTH_27BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_27BIT

Refer to

SPI_CRC_LENGTH_28BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_28BIT

Refer to

SPI_CRC_LENGTH_29BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_29BIT

Refer to

SPI_CRC_LENGTH_30BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_30BIT

Refer to

SPI_CRC_LENGTH_31BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_31BIT

Refer to

SPI_CRC_LENGTH_32BIT

u5, h5, h7

HAL_SPI_CRC_LENGTH_32BIT

Refer to

SPI_NSS_SOFT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_NSS_PIN_MGMT_INTERNAL

Refer to

SPI_NSS_HARD_INPUT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_NSS_PIN_MGMT_INPUT

Refer to

SPI_NSS_HARD_OUTPUT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_NSS_PIN_MGMT_OUTPUT

Refer to

SPI_NSS_PULSE_DISABLE

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_NSS_PULSE_DISABLE

Refer to

SPI_NSS_PULSE_ENABLE

u5, h5, c0, l4, g4, g0, h7

HAL_SPI_NSS_PULSE_ENABLE

Refer to

SPI_FIRSTBIT_LSB

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_LSB_FIRST

Refer to

SPI_FIRSTBIT_MSB

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_MSB_FIRST

Refer to

SPI_BAUDRATEPRESCALER_256

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_BAUDRATE_PRESCALER_256

Refer to

SPI_BAUDRATEPRESCALER_128

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_BAUDRATE_PRESCALER_128

Refer to

SPI_BAUDRATEPRESCALER_64

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_BAUDRATE_PRESCALER_64

Refer to

SPI_BAUDRATEPRESCALER_32

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_BAUDRATE_PRESCALER_32

Refer to

SPI_BAUDRATEPRESCALER_16

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_BAUDRATE_PRESCALER_16

Refer to

SPI_BAUDRATEPRESCALER_8

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_BAUDRATE_PRESCALER_8

Refer to

SPI_BAUDRATEPRESCALER_4

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_BAUDRATE_PRESCALER_4

Refer to

SPI_BAUDRATEPRESCALER_2

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_BAUDRATE_PRESCALER_2

Refer to

SPI_BAUDRATEPRESCALER_BYPASS

u5, h5, h7

HAL_SPI_BAUDRATE_PRESCALER_BYPASS

Refer to

SPI_TIMODE_DISABLE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_TIMODE_ENABLE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_CRCCALCULATION_ENABLE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

SPI_CRCCALCULATION_DISABLE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPI_STATE_RESET

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_STATE_RESET

Refer to

HAL_SPI_STATE_READY

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_STATE_IDLE

Refer to

HAL_SPI_STATE_BUSY

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_STATE_BUSY_TX

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_STATE_TX_ACTIVE

Refer to

HAL_SPI_STATE_BUSY_RX

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_STATE_RX_ACTIVE

Refer to

HAL_SPI_STATE_BUSY_TX_RX

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_STATE_TX_RX_ACTIVE

Refer to

HAL_SPI_STATE_ERROR

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_STATE_FAULT

Refer to

HAL_SPI_STATE_ABORT

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_STATE_ABORT

Refer to

HAL_SPI_RX_COMPLETE_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_TX_RX_COMPLETE_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_MSPDEINIT_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_MSPINIT_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_SUSPEND_CB_ID

u5, h5

Removed / New Usage changes

Refer to

HAL_SPI_ABORT_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_TX_COMPLETE_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_ERROR_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_TX_RX_HALF_COMPLETE_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_RX_HALF_COMPLETE_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPI_TX_HALF_COMPLETE_CB_ID

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

SPI_AUTO_MODE_DISABLE

u5

Removed / New Usage changes

Refer to

SPI_AUTO_MODE_ENABLE

u5

Removed / New Usage changes

Refer to

SPI_GRP1_GPDMA_CH0_TCF_TRG

u5

HAL_SPI_AM_TRIG_GRP1_GPDMA1_CH0_TC

Refer to

SPI_GRP1_GPDMA_CH1_TCF_TRG

u5

HAL_SPI_AM_TRIG_GRP1_GPDMA1_CH1_TC

Refer to

SPI_GRP1_GPDMA_CH2_TCF_TRG

u5

HAL_SPI_AM_TRIG_GRP1_GPDMA1_CH2_TC

Refer to

SPI_GRP1_GPDMA_CH3_TCF_TRG

u5

HAL_SPI_AM_TRIG_GRP1_GPDMA1_CH3_TC

Refer to

SPI_GRP1_EXTI4_TRG

u5

HAL_SPI_AM_TRIG_GRP1_EXTI4

Refer to

SPI_GRP1_EXTI9_TRG

u5

HAL_SPI_AM_TRIG_GRP1_EXTI9

Refer to

SPI_GRP1_LPTIM1_CH1_TRG

u5

HAL_SPI_AM_TRIG_GRP1_LPTIM1_CH1

Refer to

SPI_GRP1_LPTIM2_CH1_TRG

u5

HAL_SPI_AM_TRIG_GRP1_LPTIM2_CH1

Refer to

SPI_GRP1_COMP1_TRG

u5

HAL_SPI_AM_TRIG_GRP1_COMP1_OUT

Refer to

SPI_GRP1_COMP2_TRG

u5

HAL_SPI_AM_TRIG_GRP1_COMP2_OUT

Refer to

SPI_GRP1_RTC_ALRA_TRG

u5

HAL_SPI_AM_TRIG_GRP1_RTC_ALRA_TRG

Refer to

SPI_GRP1_RTC_WUT_TRG

u5

HAL_SPI_AM_TRIG_GRP1_RTC_WUT_TRG

Refer to

SPI_GRP2_LPDMA_CH0_TCF_TRG

u5

HAL_SPI_AM_TRIG_GRP2_LPDMA1_CH0_TC

Refer to

SPI_GRP2_LPDMA_CH1_TCF_TRG

u5

HAL_SPI_AM_TRIG_GRP2_LPDMA1_CH1_TC

Refer to

SPI_GRP2_LPDMA_CH2_TCF_TRG

u5

HAL_SPI_AM_TRIG_GRP2_LPDMA1_CH2_TC

Refer to

SPI_GRP2_LPDMA_CH3_TCF_TRG

u5

HAL_SPI_AM_TRIG_GRP2_LPDMA1_CH3_TC

Refer to

SPI_GRP2_EXTI4_TRG

u5

HAL_SPI_AM_TRIG_GRP2_EXTI4

Refer to

SPI_GRP2_EXTI8_TRG

u5

HAL_SPI_AM_TRIG_GRP2_EXTI8

Refer to

SPI_GRP2_LPTIM1_CH1_TRG

u5

HAL_SPI_AM_TRIG_GRP2_LPTIM1_CH1

Refer to

SPI_GRP2_LPTIM3_CH1_TRG

u5

HAL_SPI_AM_TRIG_GRP2_LPTIM3_CH1

Refer to

SPI_GRP2_COMP1_TRG

u5

HAL_SPI_AM_TRIG_GRP2_COMP1_OUT

Refer to

SPI_GRP2_COMP2_TRG

u5

HAL_SPI_AM_TRIG_GRP2_COMP2_OUT

Refer to

SPI_GRP2_RTC_ALRA_TRG

u5

HAL_SPI_AM_TRIG_GRP2_RTC_ALRA_TRG

Refer to

SPI_GRP2_RTC_WUT_TRG

u5

HAL_SPI_AM_TRIG_GRP2_RTC_WUT_TRG

Refer to

SPI_TRIG_POLARITY_RISING

u5

HAL_SPI_AM_TRIG_RISING

Refer to

SPI_TRIG_POLARITY_FALLING

u5

HAL_SPI_AM_TRIG_FALLING

Refer to

SPI_FLAG_TSERF

h7

Not implemented yet in HAL2.

Refer to

SPI_TRIG_GRP1

u5

Removed / New Usage changes

Refer to

SPI_TRIG_GRP2

u5

Removed / New Usage changes

Refer to

SPI_UNDERRUN_DETECT_BEGIN_DATA_FRAME

h7

Removed / New Usage changes

Refer to

SPI_UNDERRUN_DETECT_END_DATA_FRAME

h7

Removed / New Usage changes

Refer to

SPI_UNDERRUN_DETECT_BEGIN_ACTIVE_NSS

h7

Removed / New Usage changes

Refer to


HAL SPI enumerations

HAL1

series

HAL2

Refer to

HAL_SPI_CallbackIDTypeDef

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPI_StateTypeDef

u5, h5, c0, l4, g4, g0, f4, h7

hal_spi_state_t

Refer to


HAL SPI macros

HAL1

series

HAL2

Refer to

__HAL_SPI_CLEAR_TXTFFLAG

u5, h5, h7

Removed / New Usage changes

Refer to

__HAL_SPI_CLEAR_MODFFLAG

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_CLEAR_CRCERRFLAG

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_GET_FLAG

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_RESET_HANDLE_STATE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_DISABLE_IT

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_ENABLE_IT

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_CLEAR_OVRFLAG

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

__HAL_SPI_GET_IT_SOURCE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_CLEAR_EOTFLAG

u5, h5, h7

Removed / New Usage changes

Refer to

__HAL_SPI_CLEAR_UDRFLAG

u5, h5

Removed / New Usage changes

Refer to

__HAL_SPI_CLEAR_SUSPFLAG

u5, h5, h7

Removed / New Usage changes

Refer to

__HAL_SPI_ENABLE

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

__HAL_SPI_DISABLE

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_CLEAR_FREFLAG

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

__HAL_SPI_CLEAR_TSERFFLAG

h7

Not implemented yet in HAL2.

Refer to

IS_SPI_AUTONOMOUS_INSTANCE

h7

Not implemented yet in HAL2.

Refer to

IS_SPI_AUTO_MODE

h7

Not implemented yet in HAL2.

Refer to

IS_SPI_AUTO_MODE_TRG_POL

h7

Not implemented yet in HAL2.

Refer to

IS_SPI_GRP1_TRIG_SOURCE

h7

Not implemented yet in HAL2.

Refer to

IS_SPI_GRP2_TRIG_SOURCE

h7

Not implemented yet in HAL2.

Refer to

IS_SPI_TRIG_SOURCE

h7

Not implemented yet in HAL2.

Refer to


HAL SPI structures

HAL1

series

HAL2

Refer to

pSPI_CallbackTypeDef

u5, h5, c0, l4, g4, g0, f4

hal_spi_cb_t

Refer to

SPI_InitTypeDef

u5, h5, c0, l4, g4, g0, f4, h7

hal_spi_config_t

Refer to

SPI_HandleTypeDef

u5, h5, c0, l4, g4, g0, f4, h7

hal_spi_handle_t

Refer to

SPI_AutonomousModeConfTypeDef

u5

hal_spi_am_trig_config_t

Refer to

SPI_ReloadTypeDef

h7

Not implemented yet in HAL2.

Refer to


HAL SPI functions

HAL1

series

HAL2

Refer to

HAL_SPI_GetState

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_GetState

Refer to

HAL_SPI_GetError

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_GetLastErrorCodes

Refer to

HAL_SPI_Init

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Init

Refer to

HAL_SPI_DeInit

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_DeInit

Refer to

HAL_SPI_Transmit

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Transmit

Refer to

HAL_SPI_Receive

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Receive

Refer to

HAL_SPI_TransmitReceive

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_TransmitReceive

Refer to

HAL_SPI_Transmit_IT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Transmit_IT

Refer to

HAL_SPI_Receive_IT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Receive_IT

Refer to

HAL_SPI_TransmitReceive_IT

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_TransmitReceive_IT

Refer to

HAL_SPI_Transmit_DMA

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Transmit_DMA

Refer to

HAL_SPI_Receive_DMA

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Receive_DMA

Refer to

HAL_SPI_TransmitReceive_DMA

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_TransmitReceive_DMA

Refer to

HAL_SPI_DMAPause

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPI_DMAStop

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPI_DMAResume

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPI_Abort

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Abort

Refer to

HAL_SPI_Abort_IT

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_Abort_IT

Refer to

HAL_SPI_IRQHandler

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_IRQHandler

Refer to

HAL_SPI_TxCpltCallback

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_TxCpltCallback

Refer to

HAL_SPI_RxCpltCallback

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_RxCpltCallback

Refer to

HAL_SPI_TxRxCpltCallback

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_TxRxCpltCallback

Refer to

HAL_SPI_TxHalfCpltCallback

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_TxHalfCpltCallback

Refer to

HAL_SPI_TxRxHalfCpltCallback

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_TxRxHalfCpltCallback

Refer to

HAL_SPI_ErrorCallback

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_ErrorCallback

Refer to

HAL_SPI_AbortCpltCallback

u5, h5, c0, l4, g4, g0, f4, h7

HAL_SPI_AbortCpltCallback

Refer to

HAL_SPI_SuspendCallback

u5, h5

HAL_SPI_SuspendCallback

Refer to

HAL_SPI_RegisterCallback

u5, h5, c0, l4, g4, g0, f4, h7

Removed from HAL2 / New usage sequence

Refer to

HAL_SPI_UnRegisterCallback

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPI_RxHalfCpltCallback

u5, h5, c0, l4, g4, g0, f4

HAL_SPI_RxHalfCpltCallback

Refer to

HAL_SPI_MspInit

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPI_MspDeInit

u5, h5, c0, l4, g4, g0, f4, h7

Removed / New Usage changes

Refer to

HAL_SPIEx_FlushRxFifo

u5, h5, c0, l4, g4, g0, f4

Removed / New Usage changes

Refer to

HAL_SPIEx_EnableLockConfiguration

u5

HAL_SPI_LockIOConfig

Refer to

HAL_SPIEx_ConfigureUnderrun

u5

HAL_SPI_SLAVE_SetConfigUnderrun

Refer to

HAL_SPIEx_SetConfigAutonomousMode

u5

HAL_SPI_AM_SetConfigTrigger

Refer to

HAL_SPIEx_GetConfigAutonomousMode

u5

HAL_SPI_AM_GetConfigTrigger

Refer to

HAL_SPIEx_ClearConfigAutonomousMode

u5

Removed / New Usage changes

Refer to

HAL_SPI_Reload_Transmit_IT

h7

Not implemented yet in HAL2.

Refer to

HAL_SPI_Reload_Receive_IT

h7

Not implemented yet in HAL2.

Refer to

HAL_SPI_Reload_TransmitReceive_IT

h7

Not implemented yet in HAL2.

Refer to

HAL_SPIEx_EnableDelayReadDataSampling

h7

HAL_SPI_EnableDelayReadDataSampling

Refer to

HAL_SPIEx_DisableDelayReadDataSampling

h7

Not implemented yet in HAL2.

Refer to


HAL SPI legacy aliases (HAL1 to HAL1)

Note

This table provides a list of HAL1 to HAL1 legacy aliases defined in the stm32_hal_legacy.h HAL1 header file. To migrate the aliased HAL1 APIs, search for them in the HAL1 to HAL2 sections: HAL SPI constants, HAL SPI enumerations, HAL SPI macros, HAL SPI structures, HAL SPI functions.

HAL1 legacy API alias

HAL1 API

SPI_TIMODE_DISABLED

SPI_TIMODE_DISABLE

SPI_TIMODE_ENABLED

SPI_TIMODE_ENABLE

SPI_CRCCALCULATION_DISABLED

SPI_CRCCALCULATION_DISABLE

SPI_CRCCALCULATION_ENABLED

SPI_CRCCALCULATION_ENABLE

SPI_NSS_PULSE_DISABLED

SPI_NSS_PULSE_DISABLE

SPI_NSS_PULSE_ENABLED

SPI_NSS_PULSE_ENABLE

HAL_SPI_FlushRxFifo

HAL_SPIEx_FlushRxFifo

__HAL_SPI_1LINE_TX

SPI_1LINE_TX

__HAL_SPI_1LINE_RX

SPI_1LINE_RX

__HAL_SPI_RESET_CRC

SPI_RESET_CRC